gtk/imcontextwayland: Unset focus when unsetting widget
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 15:00:29 +0000 (16:00 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 20:29:20 +0000 (21:29 +0100)
commitfa5fa3a88151f838e96e2aacab8ce0409d3df41d
tree81bae5f5b2da4ae82ed0b7df2ac2594e81722ddb
parent9b9cc2f947d553e2283deab21b3b17dd2207d6b8
gtk/imcontextwayland: Unset focus when unsetting widget

In destruction paths of a focused entry, the IM context might first
end up detached from its widget, then destroyed. This currently prevents
the IM context from detaching itself from the GtkIMContextWaylandGlobal.

Make it do so when unsetting the client widget, so the IM context gets
properly unfocused before destruction.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3176
gtk/gtkimcontextwayland.c